package cn.com.nes.site.controller.crm.customer.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.crm.customer.bo.CustomerStaffBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import scala.Int;

import javax.validation.constraints.NotNull;

@ApiModel(value = "客户联系人保存入参模型")
@Data
public class CustomerStaffSaveVO extends BaseVO {

    @ApiModelProperty(value = "联系人ID")
    private Long id;

    @NotNull(message = "客户UUID")
    @ApiModelProperty(value = "客户UUID", required = true)
    private String customerUuid;

    @NotNull(message = "联系人姓名")
    @ApiModelProperty(value = "联系人姓名", required = true)
    private String name;

    @NotNull(message = "联系人电话")
    @ApiModelProperty(value = "联系人电话", required = true)
    private String phone;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "职位")
    private String post;
    @ApiModelProperty(value = "身份证号")
    private String sfzh;
    @ApiModelProperty(value = "行政区划代码")
    private String xzqhdm;
    @ApiModelProperty(value = "是否是户主")
    private Integer isHousehold;

    public CustomerStaffBO convertToBo() {
        CustomerStaffBO bo = new CustomerStaffBO();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }
}
